//
//  CapabilityAssessmentModel.m
//  ZYOnlineSchool
//
//  Created by 毕武侠 on 2017/1/12.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import "CapabilityAssessmentModel.h"
#import "CardModel.h"
#import "NSString+Additions.h"

@implementation CapabilityAssessmentModel

+ (NSDictionary *)objectClassInArray {
    return @{@"user_answer_report" : [CardModel class]};
}

- (void)mj_keyValuesDidFinishConvertingToObject {
    NSString *report_time = [NSString TimeformatFromSeconds:self.report_time_long] ? : @"未知";
    
    self.paperDatas = @[@[@"刷题内容", @"答题时长", @"交卷时间", @"正确率"],
                        @[self.report_type ? : @"未知", report_time, self.report_sub_time ? : @"未知", self.correct_rate]];
}

- (NSString *)correct_rate {
    if (_correct_rate == nil) {
        _correct_rate = @"未知";
    }
    return _correct_rate;
}

@end
